#include "managefile.h"
#include <QDir>
#include <QCoreApplication>
ManageFile::ManageFile(QObject *parent) : QObject(parent)
{

}
bool ManageFile::isDirExist(QString fullPath)
{
    QDir dir(fullPath);
    if(dir.exists())
    {
      return true;
    }
    else
    {
       bool ok = dir.mkpath(fullPath);//创建多级目录
       return ok;
    }
}
QString ManageFile::GetCurrentApplicationPath()
{
    return QCoreApplication::applicationDirPath();

}
